package com.aiYouPms.admin.dao;

import com.aiYouPms.admin.model.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface UserDao {
    
    List<User> findAll();
    
    User findById(Long id);
    
    void insert(User user);
    
    void update(User user);
    
    void deleteById(Long id);
    
    List<User> findByName(String name);

    List<User> search(Integer pageSize, Integer pageNum);
}
